package com.lapuda.decorator;

/**
 * description 不直接继承Shape，而是创建一个抽象类再实现这个接口，同时构造方法传入接口
 * @author shundong.li
 * @date 2022/1/24
 */
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratorShape;

    public ShapeDecorator(Shape decoratorShape) {
        this.decoratorShape = decoratorShape;
    }
}
